import request from '@/utils/request'

// 查询定位打卡拍照表列表
export function listClockin(query) {
  return request({
    url: '/service/clockin/list',
    method: 'get',
    params: query
  })
}

// 查询定位打卡拍照表详细
export function getClockin(clockinId) {
  return request({
    url: '/service/clockin/' + clockinId,
    method: 'get'
  })
}

// 新增定位打卡拍照表
export function addClockin(data) {
  return request({
    url: '/service/clockin',
    method: 'post',
    data: data
  })
}

// 修改定位打卡拍照表
export function updateClockin(data) {
  return request({
    url: '/service/clockin',
    method: 'put',
    data: data
  })
}

// 删除定位打卡拍照表
export function delClockin(clockinId) {
  return request({
    url: '/service/clockin/' + clockinId,
    method: 'delete'
  })
}
